# Maintainer: Bruno Pagani <archange@archlinux.org>

pkgbase=cormorant
pkgname=("otf-${pkgbase}" "ttf-${pkgbase}")
pkgver=3.609
pkgrel=1
pkgdesc="Open-source display font family"
arch=(any)
url="https://github.com/CatharsisFonts/Cormorant"
license=('custom:OFL')
source=(${pkgbase}-${pkgver}.tar.gz::"https://github.com/CatharsisFonts/Cormorant/archive/v${pkgver}.tar.gz")
sha256sums=('78fff4efb4d97069959a2b03a90b3e7c0c8f6e48349bf93c4ad80c3db779ef0b')

package_otf-cormorant() {
  cd ${pkgbase^}-${pkgver}
  install -Dm644 "2. OpenType Files/"*.otf -t "${pkgdir}"/usr/share/fonts/OTF/
  install -Dm644 OFL.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
}

package_ttf-cormorant() {
  cd ${pkgbase^}-${pkgver}
  install -Dm644 "1. TrueType Font Files/"*.ttf -t "${pkgdir}"/usr/share/fonts/TTF/
  install -Dm644 OFL.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
}
